package com.example.unlock2

import android.widget.ImageView

data class ImageViewModel(
    var view:ImageView,
    var normalResId:Int,
    var errorResId:Int
) {
    fun changeImage(isNormal:Int) {
        if (isNormal == normalResId) {
            view.setImageResource(normalResId)
        }else{
            view.setImageResource(errorResId)
        }
    }
}